package com.demo.springcloud.netflix.eureka;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Service;

import com.demo.springcloud.netflix.erureka.ProviderService;

/**
 * SpringcloudNetflixEurekaProvider1
 * 
 * @author xiaojianhx
 * @version V1.0.0 $ 2023-11-15 11:22:39 init ---- xiaojianhx
 */
@Service
public class DemoService implements ProviderService {

    @Autowired
    private Environment env;

    public String test(String name) {
        return "hello: " + name + ", I'm " + env.getProperty("server.port");
    }
}